package com.lantosec.hmrp.modules.category.entity;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.category.vo.UserInfoVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo extends BaseEntity<UserInfoVO> {
    @Override
    public UserInfoVO convertToVO() {
        return new UserInfoVO(this);
    }

    public UserInfo(UserInfoVO vo){
        this.value = vo.getValue();
        this.title = vo.getTitle();
    }


    //员工ID
    private String value;

    //员工姓名
    private String title;
}
